"""celery 异步"""
from celery import Celery

app = Celery(main='aijia')
# 加载 celery 配置信息，  配置信息中指定 broker 消息队列
app.config_from_object('celery_tasks.config')

# 调用自动检测函数
app.autodiscover_tasks(['celery_tasks.sms'])